﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;
using Microsoft.Phone.Tasks;

namespace Groovy_IM
{
    public partial class HelpPage : PhoneApplicationPage
    {
        public HelpPage()
        {
            InitializeComponent();

            App.systemTrayBar(App.SystemTrayIsVisible);
        }

        private void Button_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            string Tag = (sender as Button).Tag.ToString();

            int rTag = Convert.ToInt32(Tag);

            WebBrowserTask wbt = new WebBrowserTask();

            switch (rTag)
            {
                case 0:
                    SmsComposeTask composeSMS = new SmsComposeTask();
                    composeSMS.To = "7752176417";
                    composeSMS.Show();
                    break;
                case 1:
                    PhoneCallTask phoneTask = new PhoneCallTask();
                    phoneTask.PhoneNumber = "+1 (775) 217-6417";
                    phoneTask.DisplayName = "Groovy IM Productions";
                    phoneTask.Show();
                    break;
                case 2:
                    EmailComposeTask emailTask = new EmailComposeTask();
                    emailTask.To = "kuzco@att.net";
                    emailTask.Subject = "Groovy IM Support: ";
                    emailTask.Show();
                    break;
                case 3:
                    wbt.Uri = new Uri("http://www.facebook.com/296776117006463");
                    wbt.Show();
                    break;
                case 4:
                    wbt.Uri = new Uri("http://www.twitter.com/groovyim");
                    wbt.Show();
                    break;
                case 5:
                    wbt.Uri = new Uri("http://www.kuzcos.com/groovy/wp7/faq");
                    wbt.Show();
                    break;
                case 6:
                    wbt.Uri = new Uri("http://www.kuzcos.com/forum");
                    wbt.Show();
                    break;
            }
        }
    }
}